package org.wsalger.serviceimpl;

import java.util.Date;
import java.util.List;
import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wsalger.dao.ZMWeekreportMapper;
import org.wsalger.model.ZMWeekreport;
import org.wsalger.service.ZMWeekServiceI;

@Service("zmWeekService")
public class ZMWeekServiceImpl implements ZMWeekServiceI {
	private ZMWeekreportMapper zmWeekreportMapper;
	public ZMWeekreportMapper getZmWeekreportMapper() {
		return zmWeekreportMapper;
	}
	@Autowired
	public void setZmWeekreportMapper(ZMWeekreportMapper zmWeekreportMapper) {
		this.zmWeekreportMapper = zmWeekreportMapper;
	}
	@Override
	public List<HashMap> getAllWeekly() {
		return zmWeekreportMapper.g_getAllWeekly();
	}
	@Override
	public List<HashMap> getWeeklyByDate(Date d) {
		return zmWeekreportMapper.g_getWeeklyByDate(d);
	}
	@Override
	public List<HashMap> getWeeklyByUser(Long l) {
		return zmWeekreportMapper.g_getWeeklyByUser(l);
	}
	@Override
	public List<HashMap> getWeeklyByUserDate(Long l, Date d) {
		// TODO Auto-generated method stub
		return zmWeekreportMapper.g_getWeeklyByUserDate(l, d);
	}
	@Override
	public List<HashMap> getWeeklyNotVerify(Boolean b) {
		// TODO Auto-generated method stub
		return zmWeekreportMapper.g_getWeeklyNotVerify(b);
	}
	@Override
	public ZMWeekreport getWeeklyFull(Long l) {
		// TODO Auto-generated method stub
		return zmWeekreportMapper.g_getWeeklyFull(l);
	}
	@Override
	public String g_addNewWeekly(ZMWeekreport z) {
		// TODO Auto-generated method stub
		int a =zmWeekreportMapper.g_addNewWeekly(z);
		return String.valueOf(a);
	}
	@Override
	public String g_editWeekly(ZMWeekreport z) {
		// TODO Auto-generated method stub
		int a =zmWeekreportMapper.g_editWeekly(z);
		return String.valueOf(a);
	}
	@Override
	public String g_delWeekly(Long l) {
		// TODO Auto-generated method stub
		int a =zmWeekreportMapper.g_delWeekly(l);
		return String.valueOf(a);
	}
	@Override
	public String g_verWeekly(Long l) {
		// TODO Auto-generated method stub
		int a =zmWeekreportMapper.g_verWeekly(l);
		return String.valueOf(a);
	}
}
